var login = sessionStorage.getItem("login");
var url = "";
if (login == 1) {
	url = "${pageContext.request.contextPath}/renting/pages/tenant/inspection.jsp";
}
if (login == 2) {
	url = "${pageContext.request.contextPath}/renting/pages/landlord/release.jsp";
}
judge_login(url, "${pageContext.request.contextPath}/renting/pages/onther/login.jsp");


// 搜索框
$('#search').click(function(e) {
	$(".search-down").css('display', 'block');
	return false;
});
// 搜索下拉框提示内容
$(".search-hint").click(function(){
	$('#search').val($(this).text());
	$(".search-down").css('display', 'none');
	return false;
});

$('body').click(function(e){
	$(".search-down").css('display', 'none');
});
